package com.ruoyi.mall.api.domian;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品属性对象 attribute_value
 * 
 * @author luogongquan
 * @date 2024-09-30
 */
public class AttributeValue extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 商品id */
    @Excel(name = "商品id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long productId;

    /** 属性key */
    @Excel(name = "属性key")
    private String attrName;

    /** 属性value */
    @Excel(name = "属性value")
    private String attyValue;

    /** 是否删除（0：否，2：是） */
    private String delFlag;

    /** 属性顺序 */
    @Excel(name = "属性顺序")
    private Integer sort;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setAttrName(String attrName) 
    {
        this.attrName = attrName;
    }

    public String getAttrName() 
    {
        return attrName;
    }
    public void setAttyValue(String attyValue) 
    {
        this.attyValue = attyValue;
    }

    public String getAttyValue() 
    {
        return attyValue;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("attrName", getAttrName())
            .append("attyValue", getAttyValue())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("sort", getSort())
            .toString();
    }
}
